<?php


namespace app\common\service\companyIndustry\realtime;

use app\common\service\BaseService;

/**
 * 脱硝运行效率
 */
class NitreEfficiencyService extends BaseService
{
    /**
     * （减排前）脱硝运行效率
     * @@param $companyId
     * @param $drainId
     * @param $facilityId
     * @return int
     */
    public function singleCompanySingleDrainSingleFacility($facilityId)
    {
        return 1;
    }

    /**
     * （方案值）脱硝运行浓率 - 返回天数
     * @param int $companyId
     * @param int $drainId
     * @param int $facilityId
     *  @param string $type days天数| hours小时数
     * @return int
     */
    public function singleCompanySingleDrainSingleFacilityDetails($facilityId, $type = 'days')
    {
        $date = ['07/22','07/22','07/22','07/22'];
        $data = [1, 2, 3, 4];
        $result = [
            'date' => $date,
            'data' => $data,
        ];
        return $result;
    }

}